<template>
    <div>
        <el-carousel trigger="click" height="350px">
            <el-carousel-item v-for="item in mesgs" :key="item">
                <img :src="item">
            </el-carousel-item>
        </el-carousel>
    </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue';


const mesgs = reactive([
    new URL('../../../assets/images/home.jpg', import.meta.url).href ,
    new URL("../../../assets/images/home2.png", import.meta.url).href
])

</script>

<style scoped lang="scss">
    img{
        width: 100%;
        height: 350px;
    }
</style>